<table border=0 width="100%">
<tr>
<td width="50%" valign="top">
<h3>News</h3>
<?php

$i = 0;
foreach ($c->news as $newsItem)
{
	echo "<big>";
	if (strlen($newsItem->web_link) > 0)
		echo "<a href=\"$newsItem->web_link\">$newsItem->title</a>";
	else
		echo $newsItem->title;
	echo "</big>&nbsp;&nbsp;";
	echo "<small>(posted on " . HtmlUtil::formatDateOnly($newsItem->create_date)
			. " at " . HtmlUtil::formatTimeOnly($newsItem->create_date)
			. ") <a href=\"#\" onclick=\"javascript:toggleVisibility('newsItem$i');\">...</a></small><br/>";
	echo "<div id=\"newsItem$i\" ";
	if ($i > 0) { echo "style=\"display:none;\""; }
	echo "><br/>";
	echo $newsItem->item . "<br/><br/></div>";
	echo "<br/>";
	$i++;
}

if ($i == 0)
{
	echo "No News";
}

?>
</td>
<td width="50%" valign="top" align="right">
<h3>Upcoming Events</h3>
<?php

$atLeastOneItem = false;
foreach ($c->events as $event)
{
	echo "<big>";
	echo HtmlUtil::internalLink($event->title, "viewEvent", $userRoles, array("action" => "load", "id" => $event->id), $event->title);
	echo " (" . CodeLookupUtil::getValue("event_type", $event->event_type) . ")";
	echo "</big>&nbsp;&nbsp;";
	echo "<small>(" . HtmlUtil::formatDateOnly($event->start) . " from " . HtmlUtil::formatTimeOnly($event->start) . " to " . HtmlUtil::formatTimeOnly($event->end) . ")</small><br/>";
	echo $event->note;
	echo "<br/><br/>";
	$atLeastOneItem = true;
}

if (!$atLeastOneItem)
{
	echo "No Upcoming Events";
}

?>
</td>
</tr>
</table>